import Vue from "vue";
import Vuex from "vuex";
import getters from "./getters.js";

import app from "./modules/app.js";
import user from "./modules/user.js";

Vue.use(Vuex);

const store = new Vuex.Store({
	modules: {
		app,
		user,
	},
	getters,
});

export default store;

// 获取store数据
// this.$store.getters.test

// 调用store方法
// this.$store.dispatch("Test");